package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 系统-帮助业务对象 ykj_sys_help
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysHelpBo extends BaseEntity {

    /** 自增主键 */
    @NotNull(
            message = "自增主键不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 标题 */
    @NotBlank(
            message = "标题不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String title;

    /** 内容 */
    @NotBlank(
            message = "内容不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String content;

    /** 封面 */
    @NotBlank(
            message = "封面不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String cover;

    /**
     * 子标题
     * @author 老张
     */
    private String subTitle;
}
